home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 52
/
Amiga Format AFCD52 (Issue 136, May 2000).iso
/
-serious-
/
programming
/
other
/
whdload
/
rawdic17.lha
/
Examples
/
FutureTank.islave.asm
< prev
next >
Wrap
Assembly Source File
|
1999-03-01
|
2KB
|
57 lines
; Future Tank imager
; The disk is in a standard DOS 11-sector format with the only
; difference that starting from track 20 another sync word ($4A84)
; is used.
; Track 93 is used to save the highscore table. this track is skipped
; due to the fact that the highscore saver of the game is unstable
; and sometimes produces unreadable tracks.
; I have installed a pseudo-decoder for track 93 which generates an empty
; highscore table.
incdir Includes:
include RawDIC.i
SLAVE_HEADER
dc.b 1 ; Slave version
dc.b 0 ; Slave flags
dc.l DSK_1 ; Pointer to the first disk structure
dc.l Text ; Pointer to the text displayed in the imager window
dc.b "$VER:"
Text: dc.b "Future Tank imager V1.0",10,"by John Selck on 01.03.1999",0
cnop 0,4
DSK_1: dc.l 0 ; Pointer to next disk structure
dc.w 1 ; Disk structure version
dc.w 0 ; Disk flags
dc.l TL_1 ; List of tracks which contain data
dc.l 0 ; UNUSED, ALWAYS SET TO 0!
dc.l FL_DISKIMAGE ; List of files to be saved
dc.l 0 ; Table of certain tracks with CRC values
dc.l 0 ; Alternative disk structure, if CRC failed
dc.l 0 ; Called before a disk is read
dc.l 0 ; Called after a disk has been read
TL_1: TLENTRY 0,19,$1600,SYNC_STD,DMFM_STD
TLENTRY 20,92,$1600,$4A84,DMFM_STD
TLENTRY 93,93,$1600,$4A84,DMFM_FT_hiscore ; empty highscore table
TLENTRY 94,159,$1600,$4A84,DMFM_STD
TLEND
DMFM_FT_hiscore:
move.l #$0100*10000,d0
move.l #" ",d1
.l0 move.l d0,(a1)+
move.l d1,(a1)+
move.l d1,(a1)+
sub.l #$0100*1000,d0
bne.b .l0
moveq #IERR_OK,d0
rts